#include <stdio.h>


void rb_trianle(int n) {

    int r;
    int c;
    int N = n - 1;

    for ( r = 0; r <= N; r++) {
        for ( c = 0; c <= N; c++) {
            if ( r + c - N >= 0  ) {
                printf("*");
            }
            else {
                printf(" ");
            }
        }
        printf("\n");
    }
}
int main()
{

    rb_trianle(5);
    return 0;
}